<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
	<xsl:decimal-format name="european" decimal-separator="," grouping-separator="."/>
	<xsl:output method="html"/>
	<xsl:template match="logs.xml">
		<html>
			<body style="font-family:Arial,Helvetica,sans-serif; margin-top: 10px;">
				<xsl:apply-templates select="logdata"/>
			</body>
		</html>
	</xsl:template>
	<xsl:template match="logentry">
		<center>
		<table border="0" style="border: 1px solid rgb(204, 204, 204);" cellpadding="5" width="80%">
			<colgroup>
				<col width="20%" style="font-weight:bold;"/>
				<col width="80%"/>
			</colgroup>
			<tr bgcolor="#c3d9ff">
				<td>Date:</td>
				<td>
					<xsl:apply-templates select="date"/>
				</td>
			</tr>
			<tr>
				<td>Category:</td>
				<td>
					<xsl:apply-templates select="category"/>
				</td>
			</tr>
			<tr bgcolor="#c3d9ff">
				<td>OS user:</td>
				<td>
					<xsl:apply-templates select="user"/>
				</td>
			</tr>
			<tr>
				<td>Resource name:</td>
				<td>
					<xsl:apply-templates select="resourcename"/>
				</td>
			</tr>
			<tr bgcolor="#c3d9ff">
				<td>Custom Message:</td>
				<td>
					<xsl:apply-templates select="customMsg"/>
				</td>
			</tr>
			<tr>
				<td>Description:</td>
				<td>
					<xsl:apply-templates select="description"/>
				</td>
			</tr>
			<tr bgcolor="#c3d9ff">
				<td colspan="2">Stacktrace:</td>
			</tr>
			<tr>
				<td colspan="2">
					<pre style="color:red;"><xsl:apply-templates select="stacktrace"/></pre>
				</td>
			</tr>
		</table>
		</center>
		<br/>
	</xsl:template>
</xsl:stylesheet>

